package cn.gemiman.daoyi.module.cms.controller.admin.appsitefootprint.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.gemiman.daoyi.framework.excel.core.annotations.DictFormat;
import cn.gemiman.daoyi.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 站点足迹 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppSiteFootprintRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13646")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "用户类型", converter = DictConvert.class)
    @DictFormat("user_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer userType;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "19198")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "用户昵称", example = "张三")
    @ExcelProperty("用户昵称")
    private String userNickname;

    @Schema(description = "用户头像")
    @ExcelProperty("用户头像")
    private String userAvatar;

    @Schema(description = "站点编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "29220")
    @ExcelProperty("站点编号")
    private Long appSiteId;

    @Schema(description = "站点标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "28228")
    @ExcelProperty("站点标识")
    private String appId;

    @Schema(description = "栏目编号", example = "3104")
    @ExcelProperty("栏目编号")
    private Long categoryId;

    @Schema(description = "文章编号", example = "24866")
    @ExcelProperty("文章编号")
    private Long articleId;

    @Schema(description = "说说编号", example = "10843")
    @ExcelProperty("说说编号")
    private Long talkId;

    @Schema(description = "留言编号", example = "16179")
    @ExcelProperty("留言编号")
    private Long messageId;

    @Schema(description = "评论编号", example = "24278")
    @ExcelProperty("评论编号")
    private Long commentId;

    @Schema(description = "足记")
    @ExcelProperty(value = "足记", converter = DictConvert.class)
    @DictFormat("footprint_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer footprint;
    /**
     * 足记点
     */
    @Schema(description = "足记点")
    private Integer footprintFor;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
